function GameManager(){}
GameManager.prototype = new Entity();


GameManager.updateInterval;


GameManager.prototype.init = function()
{
  this.updateInterval = window.setInterval("RTE.GameManager.update();", 1000 / 100);
}


GameManager.prototype.loadPreset = function()
{
  this.addEntity("PlayerCamera", "PlayerCamera");
  this.addEntity("PlayerModel", "PlayerModel");
}


GameManager.prototype.update = function()
{
  for (var entityClass in this.entities) {
    for (var i=0; i < this.entities[entityClass].length; i++) {
        this.entities[entityClass][i].update();
    }
  }
}